import httpInstance from "@/utils/http";

//！封装获取banner
export const getBannerAPI = (params = {}) => {
    //! 默认为1 商品为2
    const { distributionSite = '1' } = params
    return httpInstance({ url: '/home/banner', method: 'get', params: { distributionSite } })
}
//！获取商品列表
export const findNewAPI = () => {
    return httpInstance({ url: '/home/new', method: 'get' })
}
//！获取商品列表
export const findHotAPI = () => {
    return httpInstance({ url: '/home/hot', method: 'get' })
}

//! 获取所有商品模块
export const getGoodsAPI = () => {
    return httpInstance({ url: '/home/goods' })
}